package com.yunjie.dao.database;

import org.logicalcobwebs.proxool.ProxoolDataSource;

public class CustomProxoolDataSource extends ProxoolDataSource {
	public CustomProxoolDataSource() {
		super();
		this.setAlias(alias);
		this.setDriver(driver);
		this.setHouseKeepingSleepTime((int) houseKeepingSleepTime);
		this.setMaximumConnectionCount(maximumConnectionCount);
		this.setMinimumConnectionCount(minimumConnectionCount);
		this.setPassword(password);
		this.setSimultaneousBuildThrottle(simultaneousBuildThrottle);
		this.setDriverUrl(driverUrl);
		this.setUser(user);
	}

	public CustomProxoolDataSource(java.lang.String alias) {
		super(alias);
		this.setAlias(alias);
		this.setDriver(driver);
		this.setHouseKeepingSleepTime((int) houseKeepingSleepTime);
		this.setMaximumConnectionCount(maximumConnectionCount);
		this.setMinimumConnectionCount(minimumConnectionCount);
		this.setPassword(password);
		this.setSimultaneousBuildThrottle(simultaneousBuildThrottle);
		this.setDriverUrl(driverUrl);
		this.setUser(user);
	}
	
	private java.lang.String alias = "new-manage";
	private java.lang.String driver = "com.mysql.jdbc.Driver";
	private long houseKeepingSleepTime = 20;

	private int maximumConnectionCount = 10;

	private int minimumConnectionCount = 3;

	private java.lang.String password = "soft";

	private int simultaneousBuildThrottle = 5;
	private java.lang.String driverUrl = "jdbc:mysql://localhost:3306/new_manage";
	private java.lang.String user = "root";
}
